import { sqlUtil } from '../common/db.js';

const TagModel = {
    // Get tag list by type
    async getList(type) {
        const sql = `
            SELECT TagID, Name 
            FROM tags 
            WHERE Type = ? AND IsDeleted = 0
        `;
        return sqlUtil.all(sql, [type]);
    }
};

export default TagModel; 